<?php
/**
 * This file is part of PHPlaza (http://code.google.com/p/phplaza)
 * This file is licensed under the GNU Lesser General Public License
 *      http://www.gnu.org/licenses/lgpl.html
 *
 * No warranty is given, express or implied. Use at your own risk.
 */

namespace core::collections;

class PostfixIterator extends TreeIterator
{
	protected function prepareList($node)
	{
		foreach($node->getChildren() as $child)
		{
			$this->prepareList($child);
		}
		$this->list->add($node);
	}
}